package com.edu.contorller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CookieValue;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class CookieController {

    @RequestMapping("cookieTest")
    public String cookieTest(@CookieValue(name = "JSESSIONID",required = false) String sessionId){
        System.out.println(sessionId);
        return "index.jsp";
    }
}
